{% extends 'AdminPanelDashboardBundle::layout.html.twig' %}


{% block stylesheets %}
  {{ parent() }}
{% endblock %}
{% block content %}

<div id="content">
  <ul class="breadcrumb">
    <li><a href="index.php" class="glyphicons home"><i></i> Нүүр</a></li>
    <li class="divider"></li>
    <li><a href="{{path('admin_question')}}">Асуулт</a></li>
  </ul>
  <div class="separator"></div>

  <div class="heading-buttons">
    <h3 class="glyphicons sort"><i></i> Шалгалт</h3>
    <div class="buttons pull-right">
      <a href="{{ path('admin_question_new') }}" class="btn btn-primary btn-icon glyphicons circle_plus"><i></i> Шинэ асуулт</a>      
    </div>
  </div>
  <div class="separator"></div>

  <div class="innerLR">
    <table class="table table-bordered table-condensed table-striped table-vertical-center checkboxs js-table-sortable">
      <thead>
        <tr>        
          <th>Id</th>
          <th style="vertical-align: middle">question</th>          
          <th style="vertical-align: middle">Sortorder</th>
          {#<th style="vertical-align: middle">Showtype</th>#}
          <th style="vertical-align: middle">questiontype</th>
          <th style="vertical-align: middle">Createdat</th>          
          <th style="vertical-align: middle">Isactive</th>
          <th style="vertical-align: middle"></th>
          
        </tr>
      </thead>
      <tbody>        
        {% for entity in entities %}
          
          <tr>
            <td><a href="{{ path('admin_question_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
            <td>{{ entity.question }}</td>            
            <td>{{ entity.sortOrder }}</td>
            {#<td>{{ entity.showType }}</td>#}
            <td>{{ entity.questionType }}</td>
            <td>{% if entity.createdAt %}{{ entity.createdAt|date('Y-m-d H:i:s') }}{% endif %}</td>
            <td>{{ entity.isActive }}</td>
            <td>
              <a href="{{ path('admin_question_edit', { 'id': entity.id }) }}">edit</a>
            </td>
          </tr>
        {% endfor %}

        </tbody>
      </table>

      <div class="separator top form-inline small">
        <div class="pull-left checkboxs_actions hide">
          <label class="strong">With selected:</label>
          <select class="selectpicker" data-style="btn-default btn-small">
            <option>Action</option>
            <option>Action</option>
            <option>Action</option>
          </select>
        </div>
        <div class="pagination pull-right" style="margin: 0;">
          <ul>
            <li class="disabled"><a href="#">&laquo;</a></li>
            <li class="active"><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">&raquo;</a></li>
          </ul>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
    <br/>		
    <!-- End Content -->
  </div>

{% endblock %}
